﻿using System.Linq;

namespace Infrastructure.ElasticSearch.Nests
{
    public static class NestedPathExtension
    {
        public static string ToNestedPath(this string entityProperty)
        {
            return $"{entityProperty.First().ToString().ToLower() }{entityProperty.Substring(1)}";
        }
    }
}
